package cn.com.headfree.mouldshow.dao.impl;

import cn.com.headfree.entity.TMouldInfo;
import cn.com.headfree.mouldshow.dao.TMouldInfoDao;
import com.gta.edu.sdk.base.dao.impl.BaseDaoImpl;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("/tMouldInfoDao")
public class TMouldInfoDaoImpl extends BaseDaoImpl<TMouldInfo> implements TMouldInfoDao {


    @Override
    public List<TMouldInfo> getAllMouldInfo() {
        StringBuilder sqlBuilder = new StringBuilder(
                "select ID,MOULD_NAME,TYPE,VALUE,SORT,EASY_NAME ");
        sqlBuilder.append(" from t_mould_info where 1=1 and DEL_SIGN=0 ");
        return this.findAllBySQL(TMouldInfo.class, sqlBuilder.toString(), null, false);
    }
}
